import { Authorized as RenderAuthorized } from 'ant-design-pro';
import { getAuthority } from './authority';

const obj = {};
obj.Authorized = RenderAuthorized(getAuthority());

// Reload the rights component
const reloadAuthorized = () => {
    obj.Authorized = RenderAuthorized(getAuthority());
};

export { reloadAuthorized };
export default obj.Authorized;
